package com.gf.framework.web.annotation;

import com.gf.framework.web.excel.DefaultExportExcel;
import com.gf.framework.web.excel.IExportExcel;
import com.gf.framework.web.translate.Translatable;

import java.lang.annotation.*;

/**
 * 导出表格注解
 * @author gaofei
 * @date 2022-06-08
 */
@Documented
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ExportExcel {

    String fileName() default "导出数据";

    String sheetName() default "sheet1";

    /**
     * 支持自定义导出类
     * @return exportClass
     */
    Class<? extends IExportExcel> exportClass() default DefaultExportExcel.class;
}
